package com.xnyzc.lhy.common.penum.carpool;

/**
 * @Description 邀约类型
 * @Author zhuyubin
 * @Date 2019-09-25 15:50
 **/
public enum EInvitationType {

    no(1, "未邀约"),
    personal(2, "私人邀约"),
    office(3, "公务邀约");

    private Integer value;
    private String desc;

    EInvitationType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static String findDesc(int value) {
        for (EInvitationType eInvitationType : values()) {
            if (value == eInvitationType.getValue()) {
                return eInvitationType.getDesc();
            }
        }
        return "";
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
